←Select platform

InsertItem Method

Summary

Inserts an item into the LeadCollection<T> at the specified index.

Syntax
C#
VB
C++
protected override void InsertItem( 
   int index, 
   T item 
) 
Protected Overrides Sub InsertItem( _ 
   ByVal index As Integer, _ 
   ByVal item As T _ 
) 
protected: 
void InsertItem( 
   int index, 
   T^ item 
) override 

Parameters

index The 0-based index at which item should be inserted.

item The object to insert. The value can be null for reference types.

Remarks

InsertItem is meant to be overridden in a derived class. For a public method to insert an item in the LeadCollection<T>, see Insert.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If index is equal to Count, item is added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly